import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This class defines the movement for the basic enemies
 * @author Hugo Armando Rodríguez Flores
 * @version May 22th 2013
 */
public abstract class Ordinario extends Enemigo
{
    /**
     * Gives the proper sequence to the movement
     */
    public void movementAnimation()
    {
        super.reverseImages();
        switch (super.getMoveCounter())
        {
            case 0: this.setImage(super.getElement(0));  super.moveCounterIncr();  break;
            case 4: this.setImage(super.getElement(1));  super.moveCounterIncr();  break;
            case 8:     super.setMoveCounter(0);  break;
            default: super.moveCounterIncr();
        }
    }
}
